var Person = /** @class */ (function () {
    function Person(name, age) {
        // 给实例对象定义的属性
        this.sex = "男";
        this.setAge = function (age) {
            console.log(age);
        };
        // 给实例对象定义的属性
        this.name = name;
        this.age = age;
    }
    Person.prototype.setName = function (name) {
        this.name = name;
    };
    return Person;
}());
var p = new Person("jack", 18);
console.log(p);
